package logic.configuration;

import java.io.File;

import logic.FileHelper;

public class ConfigurationLoaderFactory {
	
	/*
	 * Zwraca ConfigurationLoader utworzony na podstawie parametru configurationFile, ew. osobne metody
	 */
	public AbstractConfigurationLoader getConfigurationLoader(File configurationFile) {
		switch (FileHelper.getExtension(configurationFile)) {
			case "xml" : return new XMLConfigurationLoader(); 
			case "json" : throw new UnsupportedOperationException();
			default : throw new UnsupportedOperationException();
		}		
	}
	


}
